package com.small.site.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldNameConstants;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author xiaochi
 * @date 2021/12/2 17:59
 * @desc SysUserPojo
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "sys_user")
@FieldNameConstants(onlyExplicitlyIncluded = true)
public class SysUser implements Serializable {
    private static final long serialVersionUID = 4279330357829140776L;

    @Id
    private String id;
    @FieldNameConstants.Include
    private String username;
    private String password;
    private String phone;
    private String realName;
    @FieldNameConstants.Include
    private String nickName;
    private String email;
    @FieldNameConstants.Include
    private Integer status;
    private Integer sex;
    @FieldNameConstants.Include
    private Integer deleted;
    private String createId;
    private String updateId;
    private Long createWhere;
    @FieldNameConstants.Include
    private Date createTime;
    @FieldNameConstants.Include
    private Date updateTime;
}
